Skip to main content
Version: 11.x

Traffic Information

This datasource provides real-time public transport departure information for selected stops. It is commonly used to display upcoming departures on screens in locations such as offices, lobbies, and transit hubs.

The datasource supports multiple Nordic providers and retrieves data from:

  • Sweden (TrafikLab)
  • Norway (Entur)
  • Finland (Digitransit)

It can be used to display real-time departure boards for a specific stop and to filter transport views (e.g. only buses or trains).

alt text

How it works

The datasource retrieves real-time departure data from the selected transport provider API based on a configured stop.

It continuously updates departure times and filters results based on user-defined settings.

  • Departures are sorted chronologically.
  • A minimum departure threshold filters out departures that occur too soon.
  • Data is refreshed automatically based on the provider's API update frequency.
  • Real-time updates may include delays or cancellations depending on provider support.
note
  • Availability and data quality depend on the external provider APIs.
  • Danish Rejseplanen datasource is deprecated and no longer supported after 2024-12-04.

Requirements

Set up the datasource

Traffic datasources are usually included in a default site. If not, follow the steps below:

  • Go to Templates and Datasources alt text
  • Create a new datasource and choose the country/provider. alt text alt text alt text

The datasource is now ready to use in a template.

Stop, transport type, and departure time settings are configured in the templates.

Example data

Input:

  • Stop name: Stockholm Centralstation
  • Transport type: Trains
  • Min departure time: 2

Output: List of train departures from Stockholm Centralstation departing in more than 2 minutes from now.

Identifying paths

The datasource provides bindings that can be used in templates.

note

Available data may vary depending on the provider.

  • Line number
  • Destination name
  • Departure time
  • Platform
  • Stop name
  • Transport name
  • Transport type
  • Last updated time

Create template

There are pre-created templates for public transportation available in the Marketplace that you can download and customize.
In this example, we will create a simple departure board showing upcoming departures for a portrait screen.

  • Go to Templates and create a new template. alt text
  • Adjust template size for portrait (1080x1920). alt text
  • Connect datasource in the Datasource tab. alt text
  • Search and select desired stop.
    Optional: Filter by transport type and departure time alt text

The datasource returns a list of upcoming departures. Each departure is accessed by selecting a data field and specifying an Index.

  • Add components and bind to datasource:
    Note: Preview may show placeholder or static data if live data is unavailable.
    • Data binding: Line number. (Index: 0 = first departure) alt text
    • Data binding: Destination name. (Index: 0) alt text
    • Data binding: Departure time. (Index: 0) alt text
    • Data binding: Stop name (no index required) alt text
  • Use copy/paste to duplicate the components and update the Index to display additional departures:
    • Index 1: second departure alt text
    • Index 2: third departure
    • Index 3: fourth departure
  • Add additional components and bind additional values if needed (e.g. Transport Type or Platform). alt text
  • Adjust font styling, layout and additional design elements to finalize template. alt text
  • Save the template and it's now ready to be published on the screens

Datasource configuration options

Swedish Traffic Information – Departures (TrafikLab)

Source is Swedish TrafikLab API, current operating status can be found at http://status.trafiklab.se/1748135.

SettingDescriptionExample
Selected StopThe name of the stop for which to show departures, use the search field and then select the stop to useStockholm Centralstation
Transport TypeSelect which transport types to includeBuses, Trains
Min departure time to show [m]Input a threshold value, in minutes, to only show departures occurring later than the threshold2

Norwegian Traffic Information – Departures (Entur)

Source is Norwegian Entur API, current operating status can be found at https://status.entur.org/.

SettingDescriptionExample
Selected StopThe name of the stop for which to show departures, use the search field and then select the stop to useOslo S
Transport TypeSelect which transport types to includeBuses, Trains
Min departure time to show [m]Input a threshold value, in minutes, to only show departures occurring later than the threshold2

Finnish Traffic Information – Departures (Digitransit)

Source is Finnish DigiTransit API, current operating status can be found at https://www.digitraffic.fi/en/api-status/.

SettingDescriptionExample
Selected StopThe name of the stop for which to show departures, use the search field and then select the stop to useHelsingin rautatieasema
Min departure time to show [m]Input a threshold value, in minutes, to only show departures occurring later than the threshold2

Danish Traffic Information – Departures (Rejseplanen) - EOL

End-of-life

This data source will no longer function after 2024-12-04.
Rejseplanen has removed their existing free API and replaced it with a paid one.